package com.bobaini.springcloud.service;

import com.bobaini.springcloud.model.hosp.Department;
import com.bobaini.springcloud.vo.hosp.DepartmentQueryVo;
import org.springframework.data.domain.Page;

import java.util.Map;

/**
 * ClassName: DepartmentService
 * author: bob.ly
 * Version: 1.0.0
 * DateTime: 2021/04/15-22:43:00
 * Description: TODO
 */
public interface DepartmentService {
    /**
     * 上传科室信息
     * 参数使用Map，减少对象封装，有利于签名校验
     *
     * @param paramMap
     */
    void save(Map<String, Object> paramMap);

    /**
     * 分页查询
     *
     * @param page              当前页码
     * @param limit             每页记录数
     * @param departmentQueryVo 查询条件
     * @return
     */
    Page<Department> selectPage(Integer page, Integer limit, DepartmentQueryVo departmentQueryVo);

    /**
     * 删除科室
     *
     * @param hoscode
     * @param depcode
     */
    void remove(String hoscode, String depcode);
}
